<?php

namespace App\Http\Controllers\Api;

use App\Area;
use App\Http\Resources\AreaCollection;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class AreaController extends Controller
{
    public function index(){
       $areas= Area::all();
       return new AreaCollection($areas);
    }
}
